package com.zzptc.sky.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class zhanhaoActivity extends AppCompatActivity {
Button denglu=null;
    Button zhuce=null;
    TextView hui=null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhanhao);
        denglu= (Button) findViewById(R.id.denglu);
        zhuce= (Button) findViewById(R.id.zhuce);
        hui= (TextView) findViewById(R.id.hui);
        denglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(zhanhaoActivity.this,MainActivity.class);
                startActivity(intent);
                Toast.makeText(zhanhaoActivity.this, "登录成功", Toast.LENGTH_SHORT).show();
            }
        });
        zhuce.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(zhanhaoActivity.this,ZhuceActivity.class);
                startActivity(intent);
            }
        });
        hui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(zhanhaoActivity.this,ShezhiActivity.class);
                startActivity(intent);
            }
        });
    }
}
